import request from '@/utils/request'

// 登录方法
export default function login(username: string, password: string, code?: string, uuid?: string) {
  const data = {
    username,
    password,
    code,
    uuid
  }
  return request<{token: string}>({
    url: '/login',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}
